text: Simplify
authorBenjamin Otte <otte@redhat.com>
Fri, 8 Mar 2019 13:12:17 +0000 (14:12 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 8 Mar 2019 13:12:17 +0000 (14:12 +0100)
The previous arguments were equivalent to using NULL.

gtk/gtktext.c

index 6dd9ecac494e1c79bd51c3676d6a5c499c4d3375..99a5afba37004352cf449725cbd562a392f3470f 100644 (file)
@@ -2054,9 +2054,7 @@ gtk_text_measure (GtkWidget      *widget,
   PangoFontMetrics *metrics;
 
   context = gtk_widget_get_pango_context (widget);
-  metrics = pango_context_get_metrics (context,
-                                       pango_context_get_font_description (context),
-                                       pango_context_get_language (context));
+  metrics = pango_context_get_metrics (context, NULL, NULL);
 
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     {